<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta name="viewport" content="width=device-width">
		<link rel="stylesheet" href="css/swiper.min.css">
		<style>
			body {
				margin: 0;
				padding: 0;
			}

			.swiper-container {
				width: 500px;
				height: 200px;
			}

			.swiper-slide {
				background-size: cover;
				background-position: center;
			}
		</style>
	</head>
	<body>
		<div class="swiper-container">
			<div class="swiper-wrapper">
				<div class="swiper-slide" style="background-image:url(images/ad-01.jpg)">第1页</div>
				<div class="swiper-slide" style="background-image:url(images/ad-02.jpg)">第2页</div>
				<div class="swiper-slide" style="background-image:url(images/ad-03.jpg)">第3页</div>
				<div class="swiper-slide" style="background-image:url(images/ad-04.jpg)">第4页</div>
			</div>
			<div class="swiper-pagination"></div>
			<div class="swiper-button-prev swiper-button-white"></div>
			<div class="swiper-button-next swiper-button-white"></div>
		</div>
		<script src="js/swiper.min.js"></script>
		<script>
			var swiper = new Swiper(".swiper-container", {
				pagination: ".swiper-pagination",
				scrollbarHide: false,
				paginationClickable: true,
				spaceBetween: 20,

				prevButton: ".swiper-button-prev",
				nextButton: ".swiper-button-next",
				
				loop:true, //循环模式
				effect:"fade",  //图片切换没有过渡 直接下一张
				effect:"cube",  //空间旋转
				cube:{
					slideShadows:true,//阴影  旋转的时候不在正面的面变暗
					shadow:true,//投影  下面的影子
				},
				// effect:"coverflow",  //向内折翻页效果   
				// slidesPerView:3,   //显示3张  一张正面两张侧面  容器的宽度要够
				// effect:"flip",  //360度旋转
			});
		</script>
	</body>
</html>
